#include<iostream>
#include<deque>
#include<vector>
#include"HungarianAlg.h"
 
using namespace std;

typedef struct RetData{                  //struct  can have  vector
    vector<int> pos_his_master;
};

int main(){
	distMatrix_t m_test;
	m_test.push_back(1);
	m_test.push_back(0.1);
	m_test.push_back(0.01);
	m_test.push_back(0.1);
	m_test.push_back(1);
	m_test.push_back(0.1);

	AssignmentProblemSolver h_t;
	assignments_t ass;
	h_t.Solve(m_test,0,6,ass);
	cout<<ass.size()<<endl;
	for(auto a:ass)
		cout<<a<<endl;

	vector<int> vv;
	vv.push_back(1);

	vector<RetData> v1;
	RetData ret;
	ret.pos_his_master = vv;
	ret.pos_his_master.push_back(2);
	v1.push_back(ret);
	cout<<v1[0].pos_his_master[0]<<" "<<v1[0].pos_his_master[1]<<endl;

	float array[8][3]={1, 1, -1, 1, -1, -1,-1, -1, -1,-1, 1, -1,1, 1, 1,1, -1, 1,-1, -1, 1, -1, 1, 1};
	for(int i =0;i<8;i++){
		for(int j=0;j<3;j++){
			cout<<array[i][j]<<endl;
		}
	}
  

	return 0;
}
